#ifndef IMAGEWIDGET_H
#define IMAGEWIDGET_H

#include "qwidget.h"
#include "qimage.h"

class SampleImageWidget : public QWidget
{
    Q_OBJECT

protected:

    QImage m_image;
    bool is_loaded;

public:

    SampleImageWidget(QWidget * pParent = 0);
    virtual ~SampleImageWidget();

    void setImage(const QImage & image);

protected:

    virtual void paintEvent(QPaintEvent * event);

};

#endif // IMAGEWIDGET_H
